 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Library
{
    public class DatabaseProxy : IStorable
    {
        private IStorable database = new Database(); // creates an instance of the Database class and works with it, so it remains untouchable;

        public void StoreBook(Book newReading) 
        {
            this.database.StoreBook(newReading);
        }
        public void StoreNewspaper(NewsPaper newReading) 
        {
            this.database.StoreNewspaper(newReading);
        }
        public void StoreMagazine(Magazine newReading) 
        {
            this.database.StoreMagazine(newReading);
        }
        public void StoreClient(Client newClient) 
        {
            this.database.StoreClient(newClient);
        }
        public void StoreTemp(Reading newReading, Client newClient)
        {
            this.database.StoreTemp(newReading, newClient);
        }
        public List<Book> LoadBooks()
        {
            return this.database.LoadBooks();
        }
        public List<Magazine> LoadMagazines()
        {
            return this.database.LoadMagazines();
        }
        public List<Newspaper> LoadNewspapers()
        {
            return this.database.LoadNewspapers();
        }
        public List<Client> LoadClients()
        {
            return this.database.LoadClients();
        }
    }
}
